package user

import (
	"fmt"
	"math/rand"
)

var adjectives = []string{
	"甜美的",
	"酸爽的",
	"柔软的",
	"清脆的",
	"多汁的",
	"香甜的",
	"软糯的",
	"酸甜的",
	"滑嫩的",
	"新鲜的",
}

var fruits = []string{
	"草莓",
	"柠檬",
	"桃子",
	"苹果",
	"橙子",
	"芒果",
	"香蕉",
	"葡萄",
	"梨子",
	"西瓜",
}

func genRandomNickName() (nickName string) {
	randomAdjIndex := rand.Intn(len(adjectives))
	randomFruitIndex := rand.Intn(len(fruits))
	// 随机生成名字
	nickName = fmt.Sprintf("%s%s", adjectives[randomAdjIndex], fruits[randomFruitIndex])
	return
}
